The Rename Method refactoring allows to rename a specified method and automatically corrects all references to the method in the code.
To rename a method, first select it in any of the project views or the code editor and press Shift-F6 (Refactoring | Rename...)
Specify a new name for the method and press the "Find Usages" button. IDEA will search for
usages of the selected method and display a result window.
The "Search in comments and strings" option controls whether the name of the method will
be searched in comments and string as well.
If the method being renamed is implementing or overriding a method from a base class, the message will appear letting you choose which method you actually want to rename. Note that when you rename a method from a base class or interface, all overriding and implementing methods will be renamed as well.
The result window displays all found usages of the method being renamed.
You may exclude any usage you need from being renamed by pressing Delete when the usage is selected.
When pressing Delete on a file or a package node, all usages in this file or package will be excluded.
You may also include previously excluded usages by pressing Insert on a corresponding node.
The usages renamed are:
Press the "Do Rename" button (Alt-D) to rename all specified usages. It will close the preview window upon finishing. If you wish to cancel renaming, press the "Cancel" button (Alt-C)